﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model PerfectBuyData.Articulo

<article id="address">
    <h1>Detalles Artículo</h1>
    @using (Html.BeginForm("Details", "Administracion", FormMethod.Post, new { @class = "articulos" }))
    {
        @Html.ValidationSummary(true)
        <fieldset>
            <div class="display-label">
                <label>Nombre</label>
            </div>
            <div class="display-field">
                @Html.TextBoxFor(model => model.nombre, new { @disabled = "disabled", @readonly="readonly"})
            </div>

            <div class="display-label">
                <label>Descripción</label>
            </div>
            <div class="display-field">
                @Html.TextAreaFor(model => model.descripcion, new { @disabled = "disabled", @readonly="readonly", @class="multi-line"})
            </div>

            <div class="display-label">
                <label>Categoría</label>
            </div>
            <div class="display-field">
                @Html.TextBoxFor(model => model.categoria, new { @disabled = "disabled", @readonly="readonly"})
            </div>

            <div class="display-label">
                <label>Precio</label>
            </div>
            <div class="display-field">
                @Html.TextBoxFor(model => model.precio, new { @disabled = "disabled", @readonly="readonly"})
            </div>

            <div class="display-label">
                <label>Cantidad</label>
            </div>
            <div class="display-field">
                @Html.TextBoxFor(model => model.cantidad, new { @disabled = "disabled", @readonly="readonly"})
            </div>

            <div class="editor-label">
                <label>Imagen Actual</label>
            </div>
            <div class="editor-field">
                <img src="@Model.urlImagen" alt="" width="100px" height="100px" />
            </div>
        </fieldset>
    }
</article>
<p>
    @Html.ActionLink("Editar", "Edit", new { id = Model.id }) |
    @Html.ActionLink("Regresar a la Lista", "Index")
</p>
